Contribution margin is the difference between sales revenue and variable costs associated with producing a product or service. It represents the portion of sales revenue that exceeds total variable costs, which contributes to covering fixed costs and generating profit.